/*******************************************************************************
 * CLASS		PBDataStruct
 * AUTHOR		John Paul Swaynos
 * DESCRIPTION
 * This class is the data structure that is used by the Photo Mode to "store" 
 * the photos. When an image is capture in photo mode it stores the username,
 * and the filepath of the photo to a linked list.
 ******************************************************************************/
#pragma once

class PBDataStruct
{
	public:
		// Base class constructor
		PBDataStruct();
		PBDataStruct(char* firstName, char* lastName, char* filepath);
		PBDataStruct(char* firstName, char* lastName, char* filepath, PBDataStruct * next);
		void setFirstName(char* firstName);
		char* getFirstName();
		void setLastName(char* lastName);
		char* getLastName();
		void setFilepath(char* filepath);
		char* getFilepath();
		void setNextLink(PBDataStruct * link);
		PBDataStruct * getNextLink();
		// These methods are designed to be run from the head node
		void insert(PBDataStruct * node);
		PBDataStruct * find(char * firstName, char * lastName);

		// destructor
		//~PBDataStruct();
		

	protected:
		char * firstName;
		char * lastName;
		char * filepath;
		PBDataStruct * next;
};